
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<!--[if IE 8 ]><html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" class="ie8"><![endif]-->
<!--[if IE 9 ]><html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>" class="ie9"><![endif]-->
<!--[if (gt IE 9)|!(IE)]><!-->
<html dir="<?php echo $direction; ?>" lang="<?php echo $lang; ?>">
<!--<![endif]-->
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $title; ?></title>
<base href="<?php echo $base; ?>" />
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<?php if ($keywords) { ?>
<meta name="keywords" content= "<?php echo $keywords; ?>" />
<?php } ?>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<?php if ($icon) { ?>
<link href="<?php echo $icon; ?>" rel="icon" />
<?php } ?>
<?php foreach ($links as $link) { ?>
<link href="<?php echo $link['href']; ?>" rel="<?php echo $link['rel']; ?>" />
<?php } ?>

<?php if(!empty($title_fb)) echo '<meta property="og:title" content="'.$title_fb.'" />' ?>
<?php if(!empty($sitename_fb)) echo '<meta property="og:site_name" content="'.$sitename_fb.'" />' ?>
<?php if(!empty($url_fb)) echo '<meta property="og:url" content="'.$url_fb.'" />' ?>
<?php if(!empty($description_fb)) echo '<meta property="og:description" content="'.$description_fb.'" />' ?>
<?php if(!empty($image_fb)) echo '<meta property="og:image" content="'.$image_fb.'" />' ?>

<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/css/style.css">
<script src="catalog/view/javascript/jquery/jquery-2.1.1.min.js" type="text/javascript"></script>

<?php foreach ($styles as $style) { ?>
<link href="<?php echo $style['href']; ?>" type="text/css" rel="<?php echo $style['rel']; ?>" media="<?php echo $style['media']; ?>" />
<?php } ?>

<?php foreach ($scripts as $script) { ?>
<script src="<?php echo $script; ?>" type="text/javascript"></script>
<?php } ?>
<?php echo $google_analytics; ?>
</head>
<body class="<?php echo $class; ?>">
    <div id="container">
    	<div class="inner" id="header">
        	<h1>
                <?php if ($logo) { ?>
                      <a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" class="img-responsive" /></a><span><?php echo $name; ?></span>
                <?php } else { ?>
                      <h1><a href="<?php echo $home; ?>"><?php echo $name; ?></a></h1>
                <?php } ?>
        	</h1>
            <address class="fr">
             	<?php echo $language; ?>
                <!--<p style="text-align:right; margin-bottom:10px;"><?php //echo $contact_address?></p>-->
                <div class="clear"></div>
                <span>
					<?php /*
                    <img src="./public/img/tel.jpg" alt="TEL：<?php echo $contact_phone?>" height="13" width="25"> <?php echo $contact_phone?>  
                    <?php if($contact_fax!=''){?>
                    <img src="./public/img/fax.jpg" alt="FAX：<?php echo $contact_fax?> " height="13" width="25"> <?php echo $contact_fax?> <?php }?>
					*/?>
                    <img src="./public/img/mail.jpg"alt="Email：<?php echo $contact_email?>" height="13" width="25"> 
                    <a href="mailto:<?php echo $contact_email?>"><?php echo $contact_email?></a> 
                </span>
    		</address>
            <ul class="emenu">
                <li class="top"><a href="<?php echo $menu_home?>"><?php echo $text_home?></a></li>
                <li class="center"><a href="<?php echo $menu_tuvan ?>"><?php echo $text_tu_van?></a></li>
                <li class="center"><a href="<?php echo $menu_news?>"><?php echo $text_news?></a></li>
                <li class="center"><a href="<?php echo $menu_product ?>"><?php echo $text_product?></a></li>
                <li class="center"><a href="<?php echo $menu_aboutus ?>"><?php echo $text_aboutus?></a></li> 
                <li class="center"><a href="<?php echo $menu_cauhoi ?>"><?php echo $text_cauhoi?></a></li>               
                <li class="last"><a href="<?php echo $menu_contact?>"><?php echo $text_contact?></a></li>
            </ul>
		</div>